﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace NETMovie.UI.WebMVC.Models
{
    public class MovieViewModel
    {

        public MovieModel BasicInfo
        {
            get;
            set;
        }

        [Required]
        [DisplayName("Category")]
        public string Category
        {
            get;
            set;
        }
        [Required]
        [DisplayName("Cast Member")]
        public string CastMember
        {
            get;
            set;
        }

        public IEnumerable<SelectListItem> Categories
        {
            get;
            set;
        }

        public IEnumerable<SelectListItem> CastMembers
        {
            get;
            set;
        }

        public IEnumerable<MovieModel> Result { get; set; }
    }
}